package com.entity;

// Generated 09.02.2014 20:16:29 by Hibernate Tools 3.4.0.CR1

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

/**
 * FixVersionsEntity generated by hbm2java
 */
@Entity
@Table(name = "fix_versions", catalog = "jiraexcel", uniqueConstraints = @UniqueConstraint(columnNames = "id"))
public class FixVersionsEntity implements java.io.Serializable {

	private Integer idFixVersions;
	private FieldsEntity fieldsEntity;
	private String id;
	private String self;
	private String description;
	private String name;
	private String archived;
	private String released;

	public FixVersionsEntity() {
	}

	public FixVersionsEntity(FieldsEntity fieldsEntity) {
		this.fieldsEntity = fieldsEntity;
	}

	public FixVersionsEntity(FieldsEntity fieldsEntity, String id, String self,
			String description, String name, String archived, String released) {
		this.fieldsEntity = fieldsEntity;
		this.id = id;
		this.self = self;
		this.description = description;
		this.name = name;
		this.archived = archived;
		this.released = released;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id_fix_versions", unique = true, nullable = false)
	public Integer getIdFixVersions() {
		return this.idFixVersions;
	}

	public void setIdFixVersions(Integer idFixVersions) {
		this.idFixVersions = idFixVersions;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "id_fields", nullable = false)
	public FieldsEntity getFieldsEntity() {
		return this.fieldsEntity;
	}

	public void setFieldsEntity(FieldsEntity fieldsEntity) {
		this.fieldsEntity = fieldsEntity;
	}

	@Column(name = "id", unique = true, length = 100)
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "self", length = 1000)
	public String getSelf() {
		return this.self;
	}

	public void setSelf(String self) {
		this.self = self;
	}

	@Column(name = "description", length = 1000)
	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Column(name = "name", length = 1000)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "archived", length = 1000)
	public String getArchived() {
		return this.archived;
	}

	public void setArchived(String archived) {
		this.archived = archived;
	}

	@Column(name = "released", length = 1000)
	public String getReleased() {
		return this.released;
	}

	public void setReleased(String released) {
		this.released = released;
	}

}
